package com.tca.spring.framework.learning.ioc.beans;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author zhouan
 * @Date 2021/1/30
 */
@Component
public class TeacherFactoryBean implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        return new Teacher();
    }

    @Override
    public Class<?> getObjectType() {
        return Teacher.class;
    }
}
